<?php
// +----------------------------------------------------------------------
// | ebSIG
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.ebsig.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: liudaojian <liudaojian@ebsig.com>
// +----------------------------------------------------------------------

/**
 * 开发后台路由
 * @author   liudaojian <liudaojian@ebsig.com>
 * @version 1.0
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;

class DevelopRoutes
{

    public function map(Registrar $router)
    {

        $router->group(['middleware' => 'admin.service', 'prefix' => 'lar/develop/'], function($router) {

            $router->get('/', 'Develop\DevelopController@main');
            $router->get('index', 'Develop\DevelopController@index');

            //权限组页
            $router->get('permission/group', 'Develop\PermissionGroupController@index'); //权限组列表页
            $router->get('permission/group/search', 'Develop\PermissionGroupController@search'); //权限组列表查询
            $router->post('permission/group/store', 'Develop\PermissionGroupController@store'); //保存权限组
            $router->get('permission/group/delete/{id}', 'Develop\PermissionGroupController@delete'); //删除权限组
            $router->get('permission/group/{id}', 'Develop\PermissionGroupController@get'); //查询单条权限组信息

            //权限页
            $router->get('permission', 'Develop\PermissionController@index'); //权限列表页
            $router->get('permission/search', 'Develop\PermissionController@search'); //权限列表查询
            $router->get('permission/store', 'Develop\PermissionController@store'); //权限信息保存
            $router->get('permission/get/{permissionID}', 'Develop\PermissionController@get'); //获取单条权限信息
            $router->get('permission/delete/{permissionID}', 'Develop\PermissionController@delete'); //权限信息删除

            //流水号管理页
            $router->get('seqno', 'Develop\SeqnoController@index'); //流水号列表页
            $router->get('seqno/search', 'Develop\SeqnoController@search'); //流水号列表查询
            $router->get('seqno/store', 'Develop\SeqnoController@store'); //流水号信息保存
            $router->get('seqno/get/{name}', 'Develop\SeqnoController@get'); //获取单条流水号信息
            $router->get('seqno/delete/{name}', 'Develop\SeqnoController@delete'); //流水号信息删除

            //任务管理页
            $router->get('task', 'Develop\TaskController@index'); //任务列表页
            $router->get('task/search', 'Develop\TaskController@search'); //任务列表查询
            $router->get('task/store', 'Develop\TaskController@store'); //任务信息保存
            $router->get('task/get/{task_id}', 'Develop\TaskController@get'); //获取单条任务信息
            $router->get('task/delete/{task_id}', 'Develop\TaskController@delete'); //任务信息删除
            $router->get('task/status', 'Develop\TaskController@status'); //任务状态修改
            $router->get('task/log/{task_id}', 'Develop\TaskController@log'); //获取日志信息

            //ACCESS TOKEN管理页
            $router->get('access', 'Develop\AccessController@index'); //ACCESS TOKEN列表页
            $router->get('access/search', 'Develop\AccessController@search'); //ACCESS TOKEN列表查询
            $router->get('access/reset', 'Develop\AccessController@reset'); //ACCESS TOKEN重置

            //模块管理页
            $router->get('module', 'Develop\ModuleController@index'); //模块列表页
            $router->get('module/search', 'Develop\ModuleController@search'); //模块列表查询
            $router->get('module/edit/{id}', 'Develop\ModuleController@edit'); //模块列表编辑
            $router->get('module/store', 'Develop\ModuleController@store'); //模块信息保存
            $router->get('module/delete/{id}', 'Develop\ModuleController@delete'); //模块信息删除

            //模块样式管理页
            $router->get('module/style', 'Develop\ModuleStyleController@index'); //模块样式列表页
            $router->get('module/style/search', 'Develop\ModuleStyleController@search'); //模块样式列表查询
            $router->get('module/style/edit/{id}', 'Develop\ModuleStyleController@edit'); //模块列表编辑
            $router->get('module/style/store', 'Develop\ModuleStyleController@store'); //模块样式信息保存
            $router->get('module/style/detail/{id}', 'Develop\ModuleStyleController@detail'); //查看样式库信息
            $router->get('module/style/delete/{id}', 'Develop\ModuleStyleController@delete'); //模块样式信息删除

            //日志页
            $router->get('log', 'Develop\LogController@index'); //日志列表页
            $router->get('log/search', 'Develop\LogController@search'); //日志列表查询
            $router->get('log/store', 'Develop\LogController@store'); //日志信息保存
            $router->get('log/get/{manageId}', 'Develop\LogController@get'); //获取单条日志信息
            $router->get('log/delete/{manageId}', 'Develop\LogController@delete'); //日志信息删除
            $router->get('log/bill/refund', 'Develop\Log\BillRefundController@index'); //订单退款日志列表页
            $router->get('log/bill/refund/search', 'Develop\Log\BillRefundController@search');//订单退款查询

            //公共设置页
            $router->get('function/{function_id}', 'Develop\FunctionController@index'); //设置页
            $router->any('function/store/{function_id}', 'Develop\FunctionController@store'); //设置信息保存

            //结算设置页
            $router->get('checkout/common/{config_id}', 'Develop\CheckoutController@index'); //结算设置页
            $router->get('checkout/common/store/{config_id}', 'Develop\CheckoutController@store'); //结算设置信息保存

            //APP版本设置
            $router->get('app', 'Develop\AppController@index'); //APP版本设置列表页
            $router->get('app/search', 'Develop\AppController@search'); //APP版本设置列表查询
            $router->get('app/edit/{appVersionId}', 'Develop\AppController@edit'); //APP版本设置编辑
            $router->get('app/store', 'Develop\AppController@store'); //APP版本设置保存
        });

    }

}